<!DOCTYPE html>
<html lang="en">
<head th:insert="/admin/common/head::css"></head>
<body>
<div th:insert="/admin/common/header::header" ></div>
<!--  main  -->
<div class="container-fluid">
    <div class="row-fluid">
        <div th:insert="/admin/common/side::side" ></div>
        <!-- content -->
        <div style="display: flex; flex-direction: column">
            <div class="span10" id="content">
                <div class="row-fluid">
                    <!-- block -->
                    <div class="block">
                        <div class="navbar navbar-inner block-header">
                        </div>
                        <div class="block-content collapse in">
                            <div class="span12">
                                <table class="table">
                                    <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>毕业设计名称</th>
                                        <th>毕业设计描述</th>
                                        <th>最后可操作时间</th>
                                        <th>发布教师</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr th:if="${designSelect != null}">
                                        <td th:text="${designSelect.design.id}"></td>
                                        <td th:text="${designSelect.design.title}"></td>
                                        <td th:text="${designSelect.design.detail}"></td>
                                        <td th:text="${#dates.format(designSelect.design.endDate, 'yyyy.MM.dd HH:mm:ss')}"></td>
                                        <td th:text="${designSelect.design.user.username}"></td>
                                        <td>
                                            <!--            //这样可以拿到对应数据-->
                                            <a class="btn btn-default" th:href="@{/admin/design/exitdesign(id = ${designSelect.design.id})}" role="button">退选</a>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <!-- /block -->
                </div>
            </div>
        </div>
        <!-- content -->
    </div>
</div>
<!--  main  -->
</body>
<div th:insert="/admin/common/footer::js" ></div>

</html>